package com.xiaoyilin.topic;

import org.apache.kafka.common.errors.PolicyViolationException;
import org.apache.kafka.server.policy.CreateTopicPolicy;

import java.util.Map;

/**
 * 主题合法性效验
 * broker端的配置文件 config/server.properties 中配置参数 create.topic.policy.class.name =org.apache.kafka.server.policy.Policy重启
 */
public class Policy implements CreateTopicPolicy {


    @Override
    public void validate(RequestMetadata requestMetadata) throws PolicyViolationException {

    }

    @Override
    public void close() throws Exception {

    }

    @Override
    public void configure(Map<String, ?> configs) {

    }


}
